<template>
    <div class="hideManager">
        <ul class="hideManagerList">
            <li class="hideManagerLi"
                @click="$router.push('/hidePerfect')"
                v-if="userInfo.departsir!=2&&userInfo.departsir!=3">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">隐患完善</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
            <li class="hideManagerLi"
                @click="$router.push('/hideCorrect')">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">隐患整改</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
            <li class="hideManagerLi"
                @click="$router.push('/hideCheckAndAccept')"
                v-if="userInfo.departsir!=2&&userInfo.departsir!=3">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">隐患验收</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
            <li class="hideManagerLi"
                @click="$router.push('/hideAudit')"
                v-if="userInfo.departsir!=2&&userInfo.departsir!=3">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">隐患审核</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
            <li class="hideManagerLi"
                @click="$router.push('/subCompanyReview')"
                v-if="userInfo.departsir!=1&&userInfo.departsir!=2&&userInfo.departsir!=3">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">分子公司复查</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
            <li class="hideManagerLi"
                @click="$router.push('/reviewVerify')"
                v-if="userInfo.departsir!=1&&userInfo.departsir!=2&&userInfo.departsir!=3">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">复查验证</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
            <li class="hideManagerLi"
                @click="$router.push('/safetyScore')"
                v-if="userInfo.departsir!=2&&userInfo.departsir!=3">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">检查评分</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
            <li class="hideManagerLi"
                @click="lookchange">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">隐患查询</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
            <li class="hideManagerLi"
                @click="$router.push('/hiddenStatistics')">
                <div class="hideManagerCon_l">
                    <i class="hideManagerIcon"></i>
                </div>
                <div class="hideManagerCon">统计分析</div>
                <div class="hideManagerCon_r">
                    <span class="hideManagerGo"></span>
                </div>
            </li>
        </ul>
        <!-- 模态框 -->
        <toast v-model="showPositionValue"
               type="text"
               :time="1200"
               width="200px"
               is-show-mask
               :text="('该模块暂未开通 ！')"
               :position="tosPosition"></toast>
        <myMenu></myMenu>
    </div>
</template>
<script>
import myMenu from '@/commonComponents/menu'
export default {
    name: 'hideManager',
    components: {
        myMenu
    },
    data () {
        return {
            showPositionValue: false,
            tosPosition: 'center',
            userInfo: {}
        }
    },
    created () {
        this.userInfo = JSON.parse(localStorage.getItem('userInfo')) || {}
    },
    methods: {
        lookchange () {
            this.$store.state.checkcompany = {}
            this.$router.push('/hidecheck')
        }
    }
}
</script>
<style scoped>
.hideManager {
    background: #ebeef2;
    padding-top: 5px;
}
.hideManagerList {
    width: 100%;
    padding-left: 20px;
    border-radius: 20px 20px 0 0;
    background: #fff;
}
.hideManagerList .hideManagerLi {
    display: flex;
    display: -webkit-flex;
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #efeff4;
    font-size: 13px;
    padding-right: 10px;
}
.hideManagerLi .hideManagerIcon {
    display: block;
    width: 38px;
    height: 50px;
}
.hideManagerLi:nth-child(1) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_01.png') no-repeat left center;
    background-size: 28px 28px;
}
.hideManagerLi:nth-child(2) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_02.png') no-repeat left center;
    background-size: 28px 28px;
}
.hideManagerLi:nth-child(3) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_03.png') no-repeat left center;
    background-size: 28px 28px;
}
.hideManagerLi:nth-child(4) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_04.png') no-repeat left center;
    background-size: 28px 28px;
}
.hideManagerLi:nth-child(5) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_05.png') no-repeat left center;
    background-size: 28px 28px;
}
.hideManagerLi:nth-child(6) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_06.png') no-repeat left center;
    background-size: 28px 28px;
}
.hideManagerLi:nth-child(7) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_06.png') no-repeat left center;
    background-size: 28px 28px;
}
.hideManagerLi:nth-child(8) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_07.png') no-repeat left center;
    background-size: 28px 28px;
}
.hideManagerLi:nth-child(9) .hideManagerIcon {
    background: url('../../assets/hideManage/hmg_08.png') no-repeat left center;
    background-size: 28px 28px;
}

.hideManagerLi .hideManagerCon {
    flex: 1;
    font-size: 14px;
}
.hideManagerLi .hideManagerGo {
    display: block;
    width: 38px;
    height: 50px;
    background: url('../../assets/jinru.png') no-repeat center center;
    background-size: 12px 12px;
}
.unclickable .hideManagerCon {
    color: #ccc;
}
</style>
<style>
.hideManager .weui-toast .weui-toast__content {
    color: #fff;
    font-size: 14px;
}
</style>
